//用户管理

import Layout from '@/views/layout/Layout'
import Three from '@/views/layout/Three'

const user = {
  path: '/user',
  name: 'user',
  component: Layout,
  redirect: '/user/usersManage',
  key: 'user',
  meta: {
    title: '用户'
  },
  children: [{
    path: 'usersManage',
    name: 'usersManage',
    key: 'usersManage',
    component: Three,
    redirect: '/user/usersManage/userList',
    meta: {
      title: '用户管理'
    },
    alwaysShow:true,
    children: [{
      path: 'userList',
      name: 'userList',
      key: 'userList',
      component: () => import('@/views/user/userManage/list'),
      meta: {
        title: '用户列表'
      }
    },
      {
      path: 'userDetail',
      name: 'userDetail',
      key: 'userDetail',
      hidden:true,
      component: () => import('@/views/user/userManage/detail/index'),
      meta: {
        title: '用户详情'
      }
    },
    ]
  },{
    path: 'storeUsersManage',
    name: 'storeUsersManage',
    key: 'storeUsersManage',
    component: Three,
    redirect: '/user/storeUsersManage/storeUserList',
    meta: {
      title: '店员管理'
    },
    alwaysShow:true,
    children: [{
      path: 'storeUserList',
      name: 'storeUserList',
      key: 'storeUserList',
      component: () => import('@/views/user/storeUser/list'),
      meta: {
        title: '店员列表'
      }
    }
    ]
  }]
}

export default user

